package cn.sc.summer.protocol.form.route;

import cn.sc.summer.constant.model.PageParam;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import javax.validation.constraints.NotBlank;

/**
 * 类名：分页获取路由绑定的API接口信息
 *
 * @author a-xin
 * @date 2024/5/24 09:21
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "分页获取路由绑定的API接口信息")
public class GetBindingApiForm extends PageParam {

    private static final long serialVersionUID = -754056122720158529L;

    /**
     * 路由ID
     */
    @NotBlank(message = "路由ID不能为空！")
    @ApiModelProperty(value = "路由ID")
    private String routeId;

    /**
     * 服务名称
     */
    @ApiModelProperty(value = "服务名称")
    private String serverName;

    /**
     * api接口
     */
    @ApiModelProperty(value = "api接口")
    private String api;

    /**
     * 搜索值
     */
    @ApiModelProperty(value = "搜索值")
    private String search;

    /**
     * 请求方式
     */
    @ApiModelProperty(value = "请求方式")
    private String method;

}
